<ng-container *ngIf="!outlet.isActivated">
    <div class="px-5 py-2">
        <div style="position: relative;">
            <h4 style="font-size: 1.5rem;font-weight:700;" class="mt-5 mb-5 text-center">**公司报损申请单</h4>
            <div style="width:100px;height:100px;background:#ccc; position:absolute;top: -47px;right: 0;"></div>
        </div>
        <div class="row">
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">报损单号</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">仓库名称</span>
                </div>
                <div class="border-l-0 border-r-0 radius-0 border-t-0 form-control p-0">
                    <select [(ngModel)]="goods.goodsParentType" class="bg custom-select border-0">
                        <option *ngFor="let type of parentTypes" [ngValue]="type.value">{{type.text}}</option>
                    </select>
                </div>
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">单据类型</span>
                </div>
                <div class="border-l-0 border-r-0 radius-0 border-t-0 form-control p-0">
                    <select [(ngModel)]="goods.goodsParentType" class="bg custom-select border-0">
                        <option *ngFor="let type of parentTypes" [ngValue]="type.value">{{type.text}}</option>
                    </select>
                </div>
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">报损日期</span>
                </div>
                <div class="border-l-0 border-r-0 radius-0 border-t-0 form-control p-0">
                    <select [(ngModel)]="goods.goodsParentType" class="bg custom-select border-0">
                        <option *ngFor="let type of parentTypes" [ngValue]="type.value">{{type.text}}</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">拣货单号</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">报损人</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">审核人</span>
                </div>
                <div class="border-l-0 border-r-0 radius-0 border-t-0 form-control p-0">
                    <select [(ngModel)]="goods.goodsParentType" class="bg custom-select border-0">
                        <option *ngFor="let type of parentTypes" [ngValue]="type.value">{{type.text}}</option>
                    </select>
                </div>
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">出库日期</span>
                </div>
                <div class="border-l-0 border-r-0 radius-0 border-t-0 form-control p-0">
                    <select [(ngModel)]="goods.goodsParentType" class="bg custom-select border-0">
                        <option *ngFor="let type of parentTypes" [ngValue]="type.value">{{type.text}}</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">处理方式</span>
                </div>
                <div class="border-l-0 border-r-0 radius-0 border-t-0 form-control p-0">
                    <select [(ngModel)]="goods.goodsParentType" class="bg custom-select border-0">
                        <option *ngFor="let type of parentTypes" [ngValue]="type.value">{{type.text}}</option>
                    </select>
                </div>
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">拣货人</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">体积</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">重量</span>
                </div>
                <div class="border-l-0 border-r-0 radius-0 border-t-0 form-control p-0">
                    <select [(ngModel)]="goods.goodsParentType" class="bg custom-select border-0">
                        <option *ngFor="let type of parentTypes" [ngValue]="type.value">{{type.text}}</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="row" style="width:77% ;">
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">报损数量</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">报损箱数</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">单据金额</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
        </div>
        <div class="row" style="width: 51%;">
            <div class="input-group mb-3 col">
                <div class="input-group-prepend">
                    <span class="input-group-text bg border-0">备注</span>
                </div>
                <input [(ngModel)]="search.params.name" type="text" class="bg border-l-0 border-r-0 radius-0 border-t-0 form-control">
            </div>
        </div>
    </div>
    <div class="pl-3 pr-3 bg-white">
    </div>
    <div class="card rounded-0">
        <div class="card-body">
            <div class="table-responsive">
                <table class="table table-striped">
                    <tbody>
                        <tr class="font-weight-bold bg-light">
                            <td *ngFor="let th of orderTh">{{th}}</td>
                        </tr>
                        <tr>
                            <td>1</td>
                            <td>2

                            </td>
                            <td>
                                <input [(ngModel)]="search.params.name" type="text" class="form-control" placeholder="请输入关键词">
                            </td>
                            <td>4</td>

                            <!-- {{td.createdAt.substring(0,10)|date:'yyyy/MM/dd'}} -->
                            <td>6</td>
                            <td>
                                <div class="input-group col">
                                    <!-- <div class="input-group-prepend">
          <span class="input-group-text bg border-0">申请人</span></div> -->
                                    <div class="border-0 radius-0 form-control p-0">
                                        <select [(ngModel)]="goods.goodsParentType" class="bg-white custom-select border-0" title="请选择">
                                            <option *ngFor="let type of parentTypes" [ngValue]="type.value">111</option>
                                        </select>
                                    </div>
                                </div>
                            </td>
                            <td>
                                <div class="input-group col">
                                    <!-- <div class="input-group-prepend">
          <span class="input-group-text bg border-0">申请人</span></div> -->
                                    <div class="border-0 radius-0 form-control p-0">
                                        <select [(ngModel)]="goods.goodsParentType" class="bg-white custom-select border-0" title="请选择">
                                            <option *ngFor="let type of parentTypes" [ngValue]="type.value">111</option>
                                        </select>
                                    </div>
                                </div>
                            </td>
                            <td>5</td>
                            <td>3</td>
                            <td>4</td>
                            <td>5</td>
                            <td>3</td>
                            <td>4</td>
                            <td>5</td>
                            <!-- <td>5</td> -->
                            <!-- <span *ngIf="td.isActive===1" class="badge badge-success badge-pill">启用</span>
                                        <span *ngIf="td.isActive!==1" class="badge badge-secondary badge-pill">停用</span> -->
                            <td>
                                <!-- <span (click)="confirmDelete(td)" tsTip="删除" class="btn-icon btn-icon-danger">
                        <i tsIcon="delete"></i>
                      </span>
                                        <span tsTip="详情/编辑" class="btn-icon btn-icon-info" routerLink="detail/{{td.id}}">
                        <i tsIcon="edit"></i>
                      </span> -->
                                <span (click)="confirmDelete()" tsTip="添加商品" class="btn-icon btn-icon-success">
                                    <!-- <i tsIcon="delete"></i> -->添加
                                </span>
                                <span (click)="confirmDelete()" tsTip="删除" class="btn-icon btn-icon-danger">
                                    <i tsIcon="delete"></i>
                                </span>
                                <span tsTip="详情/编辑" class="btn-icon btn-icon-info">
                                    <i tsIcon="edit"></i>
                                </span>
                                <!-- <span tsTip="查看" class="btn-icon btn-icon-info" routerLink="user">
    <i tsIcon="edit"></i>查看
    </span> -->
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <!-- <div class="row py-4">
                        <span class="col-sm-6 text-center">合计</span>
                        <span class="col-sm-2 text-center">数量</span>
                        <span class="col-sm-2 text-center">箱数</span>
                        <span class="col-sm-2 text-center">金额</span>
                    </div> -->
            <!-- <div class="text-right">
                    <ts-pagination (pageChange)="loadDatas()" [pagination]="pagination" [items]="[{text:'显示 5 条',value:5},{text:'显示 10 条',value:10},{text:'显示 20 条',value:20}]"
                        [color]="global.params.color" goTitle="跳转" prevTitle="上一页" nextTitle="下一页" startTitle="首页" endTitle="末尾"
                        outline></ts-pagination>
                </div> -->
        </div>
    </div>



    <div class="my-5 m-btn text-right pr-5">
        <button routerLink="/outbound/outbound" tsBtn color="white">返回列表</button>
        <button *ngIf="goods.id===0" tsBtn loading color="success" (submit)="confirmInsert($event)">确定添加</button>
        <!-- <button routerLink="/purchase/order" tsBtn color="danger">取消</button> -->
        <!-- <button tsBtn color="success" (click)="resetForm()">新增</button> -->
        <!-- </button> -->
    </div>
</ng-container>

<router-outlet #outlet="outlet"></router-outlet>